cboj-payments-prc-api

(0 reviews)

Western Union - Payment Transaction

Description: This API is used to make a payment transaction in T24, which is used for Western Union integration.

Mulesoft Request:

Headers:

Mandatory Headers: x-correlation-id, client_id, x-channel-id, client_secret

Optional Headers: x-sub-channel-id, , x-bank-id, x-user-id, x-debug-flag, x-customer-id, Authorization

Paramaters:

URI Params: NA

Query Params: NA

Body:

{
  "debitAccountNumber": "4152931",
  "debitCurrency": "JOD",
  "debitAmount" "100"
  "debitValueDate": "20210202",
  "creditCurrency": "JOD",
  "creditValueDate": "20210202",
  "commissionType1": "WUFEE",
  "commissionType2": "CBWUFEE"
}

Content-type: application/json

Mulesoft Response:

Success Response: (200)

{
    "status": {
        "success": "true",
        "code": "200",
        "arabicMessage": "تمت العملية بنجاح",
        "englishMessage": "The Operation has been Successfully Completed"
    },
    "response": {
        "transactionReferenceNumber": "FT21039ACWUBPG6Y"
    }
}

Sample Error Response:

500 :

{
    "success”:  false,
    "code”:  500,
    "reasonCode”: "Internal Server Error",
    "arabicMessage”: "",
     "englishMessage":"NO MATCHING RECORDS FOUND",
    "backendError": "NO MATCHING RECORDS FOUND",  (if debug flag is on)
    "backendCode": "D0004" (if debug flag is on)
}

Reviews